﻿@model EasyStep.Website.Models.TestConstCreateModel

@{
    ViewBag.Title = "Create New Constant";
}

<h2>Create New Constant</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>   </legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ConstListNameOrId)
        </div>
        <div class="editor-field constant-list">
            @Html.EditorFor(model => model.ConstListNameOrId)
            @Html.ValidationMessageFor(model => model.ConstListNameOrId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Data)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Data)
            @Html.ValidationMessageFor(model => model.Data)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index","TestConsts")
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $(".constant-list").autoComboBox({
        });
    });
</script>

